﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/admin.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="admin_link_Default" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<link href="../artcles/StyleSheet.css" type="text/css" rel="Stylesheet" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
<div style="width:700px">
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                Width="695px" CellPadding="4" EnableModelValidation="True" 
            ForeColor="#333333" GridLines="None" 
            onselectedindexchanged="GridView1_SelectedIndexChanged">
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            <Columns>
                <asp:BoundField DataField="link_id" HeaderText="ID">
                <ItemStyle Width="40px" />
                </asp:BoundField>
                <asp:BoundField DataField="link_name" HeaderText="链接名" />
                <asp:BoundField DataField="link_url" HeaderText="链接URL" />
                <asp:BoundField DataField="link_remark" HeaderText="链接描述" />
                <asp:BoundField DataField="link_order" HeaderText="排序">
                <ItemStyle Width="40px" />
                </asp:BoundField>
                <asp:CommandField ShowSelectButton="True">
                <ItemStyle Width="40px" />
                </asp:CommandField>
            </Columns>
            <EditRowStyle BackColor="#999999" />
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        </asp:GridView>
        <HR style="border:1 dashed #987cb9" width="80%" color=#987cb9 SIZE=1>
        <div style="width:500px;float:left">
            <table style="width:100%;">
                <tr>
                    <td style="text-align:right;width:30%">
                        链接名称：
                    </td>
                    <td>
                        <asp:TextBox ID="NameBox" runat="server" Width="204px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td style="text-align:right;width:30%">
                        链接地址：
                    </td>
                    <td>
                        <asp:TextBox ID="UrlBox" runat="server" Width="206px"></asp:TextBox><font style="font-size:8pt;color:Red;">链接必须以http://开头</font></td>
                </tr>
                <tr>
                    <td style="text-align:right;width:30%">
                        链接描述：
                    </td>
                    <td>
                        <asp:TextBox ID="RemarkBox" runat="server" Height="41px" TextMode="MultiLine" 
                            Width="209px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td style="text-align:right;width:30%">
                        链接顺序：
                    </td>
                    <td>
                        <asp:TextBox ID="OrderBox" runat="server" Width="32px">0</asp:TextBox></td>
                </tr>
            </table>
        </div>
        <div style="width:200px;float:left">
            <table>
                <tr><td>
                    <asp:Button ID="EditBtn" runat="server" Text="修改" BorderStyle="None" 
                        CssClass="bluebutton" onclick="EditBtn_Click" /></td></tr>
                 <tr>
                    <td>
                        <asp:Button ID="AddBtn" runat="server" Text="添加" BorderStyle="None" 
                            CssClass="bluebutton" onclick="AddBtn_Click" /></td>
                 </tr>
                 <tr>
                    <td>
                        <asp:Button ID="DelBtn" runat="server" Text="删除" BorderStyle="None" 
                            CssClass="bluebutton" OnClientClick="confirm('确认删除?')" 
                            onclick="DelBtn_Click" /></td>
                 </tr>
            </table>
        </div>
</div>
</asp:Content>

